package com.itheima;

public class Demo01 {
    public static void main(String[] args) {
        Demo1 de =new Demo1("王五");
        Demo1 de1 =new Demo1("王五");

    /*    String s = de.toString();
        System.out.println(s);
        System.out.println(de.equals(de1));*/
    String s =de.toString();
        System.out.println(s);
        System.out.println(de.equals(de1));




    }
}
